/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dto;

import java.io.Serializable;

/**
 *
 * @author lab
 */
public class Tour implements Serializable {

    private int tourID;
    private TourCategory tourCate;
    private String name;
    private String imageUrl;
    private double price;
    private String description;

   
    /**
     * @return the tourCate
     */
    public TourCategory getTourCate() {
        return tourCate;
    }

    /**
     * @param tourCate the tourCate to set
     */
    public void setTourCate(TourCategory tourCate) {
        this.tourCate = tourCate;
    }

    /**
     * @return the tourID
     */
    public int getTourID() {
        return tourID;
    }

    /**
     * @param tourID the tourID to set
     */
    public void setTourID(int tourID) {
        this.tourID = tourID;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the imageUrl
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * @param imageUrl the imageUrl to set
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    /**
     * @return the price
     */
    public double getPrice() {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(double price) {
        this.price = price;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
    public boolean validate(){
        if (name.equals("") || price <= 0 || tourCate == null) {
            return false;
        }
        return true;
    }
}
